﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class rotateDemo : MonoBehaviour {

	// Use this for initialization
	void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
		if(Input.GetMouseButton(1))
		{
			transform.Rotate(new Vector3(0, 0, 1));
		}
		if (Input.GetMouseButton(0))
		{
			transform.Rotate(new Vector3(0, 1, 0));
		}
	}
}
